{include file="public/header" /}

<form method="get" action="{:url('logs')}" novalidate="true">
	<section class="panel panel-default search-from">
		<header class="panel-header">
			<div class="title"><i class="icon-arrow-down-solid"></i>查询条件</div>
		</header>
		<div class="panel-body">
			<div class="col-2 col-xd">
				<div class="form-group">
					<select name="send_type">
						<option value="">全部类型</option>
						{php}$type_list = get_type_desc_list('sms_type_desc');{/php}
						{volist name="type_list" id="rs"}
							<option value="{$rs['val']}" {eq name="rs['val']" value="$send_type"}selected{/eq}>{$rs['name']}</option>
						{/volist}
					</select>
				</div>
			</div>
			<div class="col-2 col-xd">
				<div class="form-group">
					<input type="text" name="mobiles" value="{$mobiles}" placeholder="手机号">
				</div>
			</div>
			<div class="col-2 col-xd">
				<div class="form-group">
					<input type="text" name="status" value="{$status}" placeholder="状态码">
				</div>
			</div>
			<div class="form-group-submit">
				<button type="submit" class="btn btn-info"><i class="icon-search"></i>查询</button>
			</div>
		</div>
	</section>
</form>

<table class="data-list">
	<tbody>
		<tr>
			<th width="70">编号</th>
			<th>类型</th>
			<th>手机号</th>
			<th width="450">内容</th>
			<th>状态码</th>
			<th>发送结果</th>
			<th>发送时间</th>
		</tr>
		{volist name="list" id="rs"}
			<tr class="data-{$rs['logs_id']}">
				<td>{$rs['logs_id']}</td>
				<td>{:get_type_desc($rs['send_type'], 'sms_type_desc')}</td>
				<td>{$rs['mobiles']}</td>
				<td>{$rs['content']}</td>
				<td>{$rs['result']}</td>
				<td>{$rs['status']}</td>
				<td>{:date('Y-m-d H:i:s', $rs['create_time'])}</td>
			</tr>
		{/volist}
	</tbody>
</table>

<div class="opt-page-box">
	{$page}
</div>

{include file="public/footer" /}